<?php

use Jialeo\LaravelSchemaExtend\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSettingSourcesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('setting_sources', function (Blueprint $table) {
            $table->charset = 'utf8';
            $table->collation = 'utf8_general_ci';
            $table->comment = '渠道设置表';
            $table->increments('id');
            $table->unsignedInteger('source_id')->comment('渠道ID');
            $table->unsignedInteger('type')->comment('分类');
            $table->string('source_name')->comment('渠道名称');
            $table->text('ios_path')->comment('ios路径');
            $table->text('android_path')->comment('android路径');
            $table->text('web_path')->comment('H5路径');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('setting_sources');
    }
}
